package unitTool;

public class Dictionary {

    public static final int DEL_FLAG = 1;
    public static final int NOT_DEL_FLAG = 0;

    public static class Order {
        public final static int STATE_BY_CART = 0;
        public final static int STATE_NO_PAY = 1;
        public final static int STATE_ALREADY_PAY = 2;
        private final static String[] states = {"购物车", "支付详情", "历史订单"};

        public static String stateSTring(int state_code) {
            return states[state_code];
        }
    }

    public static class PageDirect {
        public final static String PAGE_INDEX = "1";
        public final static String PAGE_SIZE = "10";
    }

    /**
     * Session的键值
     */
    public static class SessionKey {
        public static final String CURRENT_USER = "current_user";
        public static final String VERIFY_CODE = "verify_code";
        /**
         * 现在要支付的orderid
         */
        public final static String CURRENT_ORDER_ID = "currentOrderId";
        /**
         * 例："(id1,id2,id3)"
         */
        public final static String CURRENT_ORDER_DETAILS = "currentOrderDetails";
        /**
         * 例： [id1,id2,id3]
         */
        public final static String CURRENT_ORDER_DETA_KUID_NUM = "currentOrderDetaKUIDNum";
    }

    /**
     * 文件路径，接口用的
     */
    public static class FilePath {
        public static final String PROUDECT_PIC_PATH = "uploadFileDir";
    }

    public static class RoleId{
        public static final int MANAGER_ROLE = 1;
        public static final int USER_ROLE = 2;
    }
}
